package adress;

/**
 *<br>Description</b><br>
 *Adress , abstract superclass for all types of adreses
 * @author nextepisode1
 */
public abstract class Adress {
	/**Literal representation of the adress */
	private String adress;
	
	public Adress(String adress) {
		this.adress=adress;
	}
	/**
	 * Validates the inputed address
	 * @param adress the string to be validates
	 * @return true if it'a valid address
	 */
	public abstract boolean valid(String adress);
	@Override
	public String toString() {
		return "Adress [adress=" + adress + "]";
	}
	
}
